package com.运算符operator;
//导入这个包下所有的类

public class Operator1 {
    public static void main(String[] args) {
        //二元运算符
        int a = 50;
        int b = 40;
        int c = 30;
        int d = 20;


        System.out.println(a+b);
        System.out.println(a-b);
        System.out.println(a*b);
        System.out.println((double)a/b);
        System.out.println("===============================================");

        long h= 123123123L;
        int t = 123;
        short w = 10;
        byte k = 8;
        System.out.println(h+t+w+k);
        System.out.println(t+w+k);
        System.out.println(w+k);
        System.out.println("==================================================");
        //关系运算符返回的结果：正确，错误 布尔值
        //if
        int p = 10;
        int r = 20;
        int m = 11;
        System.out.println(p>r);
        System.out.println(p<r);
        System.out.println(p==r);
        System.out.println(p!=r);
        System.out.println(r%m);  //  20/11=1...9
    }
}
